]> dgit.raspbian.org Git - gnome-shell.git/commit
notification: Pass policy in the Source contructor
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 6 Feb 2024 17:16:29 +0000 (18:16 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 9 Feb 2024 11:12:51 +0000 (11:12 +0000)
commit3fc7ed40889cf0c3b68217aa483bf90799b84916
tree0fee5b9140e5ffb5ddd920f1ccff0b271f07740a
parent810391f41ee6f8e1ea89fd6e9a9170728f0ee870
notification: Pass policy in the Source contructor

Commit 932ccac1 changed Source to use a regular constructor
instead of `_init()`.

Unfortunately that results in ordering issues for subclasses
that override `_createPolicy()`, if that method needs to access
any properties that are set in the constructor (as `this` is
only available after chaining up to the parent).

We can fix that by simply setting the policy from the constructor,
instead of relying on some overriden method being called.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3170>
js/ui/components/telepathyClient.js
js/ui/extensionSystem.js
js/ui/notificationDaemon.js
js/ui/windowAttentionHandler.js